import {getContractSubjectList} from "@/pages/Personnel/Entry/Contract/service";


const Model = {
  namespace: 'contractSubject',
  state: { contractSubjectList: [] },
  effects: {
    *getContractSubjectList({ payload }, { call, put }) {
      const response = yield call(getContractSubjectList, payload);
      yield put({
        type: 'show',
        payload: response,
      });
    },
  },
  reducers: {
    show(state, {payload}) {
      return { ...state, contractSubjectList: payload };
    },
  },
};
export default Model;
